package com.parenting.feign.controller;

import com.parenting.model.ActivityDTO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.FeignClientProperties;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "activity-applet-server", path = "/" ,configuration = FeignClientProperties.FeignClientConfiguration.class)
public interface IFeignAppletActivityController {
    @ApiOperation(value = "校验该店铺是否被认领")
    @GetMapping("/api/activity/{activityId}")
    ActivityDTO getActivityById(@PathVariable("activityId") String activityId);
}
